<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/static/js/jquery-3.3.1.js"></script>
</head>
<body>
        <input name="id">
        <input name="text">
        <button type="button" onclick="ab()">woshi</button>

<script>
function ab() {
    $.ajax({
        url:'http://127.0.0.5/index.php/api/user/login/phone/asd',
        type:'DELETE',
        dataType:'json',
        data:{'id':123,'text':'是我啊'},
        success:function (res) {
            console.log(res);
        }
    })
}

</script>
</body>
</html>